<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="icon" href="{:config('web.cdn')}/favicon.ico">
    <title>去除HTML标签 - 米醋儿</title>
    <meta name="keywords" content="标签，html，去除标签">
    <meta name="description" content="去除多余的html标签">
    {include file="public:head" /}
</head>
<body>
{include file="public:header_nav" /}
<div class="clear"></div>
<div class="layui-container    mt15 toolspage">


        <div class="fly-panel fly-panel-user tools">
            <div class="layui-tab layui-tab-brief" lay-filter="demo">
                {include file="tools:nav" /}
                <br>
                <br>
                <hr>
                <blockquote class="layui-elem-quote">请将需要装换的代码粘贴到下面的输入框中</blockquote>
                <textarea rows="20" id="textarea" name="desc" placeholder="请输入内容" class="layui-textarea"></textarea>
                <div class="clear"></div>
                <button type="button" class="layui-btn layui-btn-fluid" onclick="clear_html()">一键转换</button>

            </div>
        </div>
    </div>


{include file="public/footer"}

<script>

    //
    function clear_html(){
        var t = $("#textarea").val();
        if(!t){
            error("请先输入需要转换的内容内容");
            return false;
        }
        var url = "{:url('tools/clear_html')}";
        $.post(url,{t:t},function (e) {
            $("#textarea").val(e);
        })
    }


</script>
